package com.zzy.springbootdemo.design_01_factory.spring.factory;

import com.zzy.springbootdemo.design_01_factory.spring.common.Constants;
import com.zzy.springbootdemo.design_01_factory.spring.service.RewardSpringService;
import org.springframework.stereotype.Service;

/**
 * Spring工厂方法1
 */
@Service
public class RewardFactory extends RewardConfig{

    public RewardSpringService getRewardService(Constants.REWARD rewardType){
        return factoryMap.get(rewardType);
    }

}
